<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>后盾人</title>
  </head>
  <body></body>
  <script>
    // let tel = "2030/12/18";
    // console.log(tel.replace(/\//g, "-"));
    // let hd = "(010)99999999 (020)8888888";
    // 010-99999
    // let reg = /\((\d{3,4})\)(\d{7,8})/g;
    // console.log(hd.match(reg));
    // console.log(hd.replace(reg, "$1-$2"));

    // 替换字符串可以插入下面的特殊变量名：
    // $`(左边的部分) $'(右边的部分)  %&(正则匹配的部分)
    let hd = "++=后盾人%--";
    console.log(hd.replace(/后盾人/, "$`$`$&$'$'"));

    var reg = 
    var reg = 

  </script>
</html>
